<?php

namespace Mall\Model;

use Common\Model\BaseModel;
use Common\Model\ModelException;

class ShopModel extends BaseModel
{
    protected $_auto = [
    ];

    protected $_validate = [
    ];

    protected $_scope = [
    ];

    public function isValid($shopList)
    {
        foreach ($shopList as $shop) {
            if ($shop['closed'] == 1 || $shop['audit'] == 0) {
                return false;
            }
        }
        return true;
    }
    
}
